/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EL;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author MinhHang
 */
@Entity
@Table(name = "tbl_Service")
@NamedQueries({
    @NamedQuery(name = "TblService.findAll", query = "SELECT t FROM TblService t")})
public class TblService implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ServID")
    private Integer servID;
    @Basic(optional = false)
    @Column(name = "Subject")
    private String subject;
    @Basic(optional = false)
    @Lob
    @Column(name = "ContentService")
    private String contentService;
    @Basic(optional = false)
    @Column(name = "Posted")
    private String posted;
    @Column(name = "Image")
    private String image;

    public TblService() {
    }

    public TblService(Integer servID) {
        this.servID = servID;
    }

    public TblService(Integer servID, String subject, String contentService, String posted) {
        this.servID = servID;
        this.subject = subject;
        this.contentService = contentService;
        this.posted = posted;
    }

    public Integer getServID() {
        return servID;
    }

    public void setServID(Integer servID) {
        this.servID = servID;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContentService() {
        return contentService;
    }

    public void setContentService(String contentService) {
        this.contentService = contentService;
    }

    public String getPosted() {
        return posted;
    }

    public void setPosted(String posted) {
        this.posted = posted;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (servID != null ? servID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TblService)) {
            return false;
        }
        TblService other = (TblService) object;
        if ((this.servID == null && other.servID != null) || (this.servID != null && !this.servID.equals(other.servID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "EL.TblService[servID=" + servID + "]";
    }

}
